import service from '@/utils/request'

export const useOrgListApi = () => {
	return service.post('/api/strator/department/tree/all')
}

export const useOrgAddApi = (data: any) => {
	return service.post(data.id ? '/api/strator/department/modify' : '/api/strator/department/add', data)
}

export const useOrgApi = (data: any) => {
	return service.post('/api/strator/department/detail', data)
}
export const departmentwithuser = (data: any) => {
	return service.post('/api/strator/department/listwithuser', data)
}
